-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NG9 #28
base: master
Are you sure you want to change the base?
NG9 #28
Conversation
const sharedLibsArr = sharedLibs.split(','); | ||
sharedLibsArr.forEach(sharedLibName => { | ||
const factoryRegexp = new RegExp(`${sharedLibName}.ngfactory$`); | ||
config.externals[0][sharedLibName] = sharedLibName; // define external for code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In sharedLibsArr there is ngfactory$, how is that going to work with ivy?
this.pluginLoader.load(pluginName).then((moduleType: any) => { | ||
const entry = moduleType.entry; | ||
const componentFactory = this.cfr.resolveComponentFactory(entry); | ||
this.vcRef.createComponent(componentFactory, undefined, this.injector); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of creating factory and component ourselves, can we use ngComponentOutlet
this.component = moduleType.entry;
In template:
<ng-container *ngComponentOutlet="component">
No description provided.